]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Migrate eslint-plugin-jsdoc rule and pin eslint versions
authorEvan Welsh <contact@evanwelsh.com>
Wed, 7 Jun 2023 06:23:54 +0000 (23:23 -0700)
committerMarge Bot <marge-bot@gnome.org>
Wed, 7 Jun 2023 18:20:50 +0000 (18:20 +0000)
Pin eslint to v8 and eslint-plugin-jsdoc to v46, migrate the removed
jsdoc rule.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2792>

.gitlab-ci.yml
lint/eslintrc-gjs.yml
lint/eslintrc-legacy.yml

index 4bde5abb6212e6db6fe16f0bd146d7500de3391a..3e34ded6f4566ba2639bf3837e56f92b6f333eb5 100644 (file)
@@ -49,7 +49,7 @@ workflow:
 .gnome-shell.fedora:
   variables:
     FDO_DISTRIBUTION_VERSION: 38
-    FDO_DISTRIBUTION_TAG: '2023-04-21.1'
+    FDO_DISTRIBUTION_TAG: '2023-06-07.1'
     FDO_DISTRIBUTION_PACKAGES:
       gjs
       nodejs
@@ -62,7 +62,7 @@ workflow:
       pkgconfig(json-glib-1.0)
     FDO_DISTRIBUTION_EXEC: |
       # For static analysis with eslint
-      npm install -g eslint eslint-plugin-jsdoc &&
+      npm install -g eslint@^8.0.0 eslint-plugin-jsdoc@^46.0.0 &&
 
       dnf group install -y 'Development Tools' \
                  'C Development Tools and Libraries' &&
index 62fd4a2ddbf311a5434107b9282d33cd1d2176a7..e1f451991a39be1ed77399f0a7552b3013ed4449 100644 (file)
@@ -68,7 +68,10 @@ rules:
   jsdoc/check-tag-names: error
   jsdoc/check-types: error
   jsdoc/implements-on-classes: error
-  jsdoc/newline-after-description: error
+  jsdoc/tag-lines: 
+    - error
+    - any
+    - startLines: 1
   jsdoc/require-jsdoc: error
   jsdoc/require-param: error
   jsdoc/require-param-description: error
index e0d4fa2e7acdaf0e9ecc6b2dfec64a07322a59f4..9249ffcf6b6551b7b7762e52039b579ab1a963a3 100644 (file)
@@ -12,7 +12,7 @@ rules:
   jsdoc/check-tag-names: off
   jsdoc/check-types: off
   jsdoc/implements-on-classes: off
-  jsdoc/newline-after-description: off
+  jsdoc/tag-lines: off
   jsdoc/require-jsdoc: off
   jsdoc/require-param: off
   jsdoc/require-param-description: off